<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>电影详情</title>

</head>
<body>
<h3>欢迎</h3>
<h1>电影详情</h1>
<hr>
电影编号：<div th:text="${movie.id}"></div> <br>
电影名称：<div th:text="${movie.movieName}"></div><br>
电影评分：<div th:text="${movie.movieScore}"></div><br>

电影评论：
<div th:each="record : ${movie.movieRecord}">
    <div th:if="${record.movieReviews}">
        <div th:text="${record.movieReviews}"></div>
    </div>
</div>

<h2>您正在观看</h2>
<form th:action="@{'/user/record/' + ${movie.movieName}}" method="post">
    请发表您的评论: <input type="text" name="comment" ><br>
    <input type="submit" value="退出"/><br>
</form>

</body>
</html>
